package com.cardrive.entity;

public class Pair {

	public double x;
	public double y;

	public Pair() {
		this.x = 0;
		this.y = 0;
	}

	public Pair(double x, double y) {
		this.x = x;
		this.y = y;
	}

	public double getModule() {
		return Math.sqrt(x * x - y * y);
	}

	public double getX() {
		return x;
	}

	public void setX(double x) {
		this.x = x;
	}

	public double getY() {
		return y;
	}

	public void setY(double y) {
		this.y = y;
	}

}
